Diagnosing Dementia: An Artificial Intelligence-Based Visual Test